/**
 ******************************************************************************
 * @file           : bsp_w25qxx_config.h
 * @brief          : W25Qxx Flash Configuration File (STM32F4xx)
 ******************************************************************************
 */

#ifndef __BSP_W25QXX_CONFIG_H
#define __BSP_W25QXX_CONFIG_H

#include "stm32f4xx.h"

#define W25QXX_USE_LOG     1

#if (W25QXX_USE_LOG == 1)
    #ifndef LOG_TAG
        #define LOG_TAG    "W25Qxx"
    #endif
    #include "elog.h"
#elif (W25QXX_USE_LOG == 2)
    #include <stdio.h>
    #define log_i(fmt, ...)     printf(fmt "\r\n", ##__VA_ARGS__)
    #define log_e(fmt, ...)     printf("[ERROR] " fmt "\r\n", ##__VA_ARGS__)
#else
    #define log_i(fmt, ...)
    #define log_e(fmt, ...)
#endif

#define W25QXX_CS_GPIO_PORT     GPIOA
#define W25QXX_CS_GPIO_PIN      GPIO_PIN_4

#endif
